var MemberModal = {
  name: 'staff-batch-edit-modal',
  template: ' <Modal\
                    title="新增员工"\
                    v-model="model"\
                    width="1010"\
                    ok-text="保存"\
                    on-cancel="cancel"\
                    class-name="vertical-center-modal addNewStaffWrap">\
                <div class="addNewStaffBox clearfix">\
                    <div class="leftInfo">\
                        <div class="personal_img">\
                            <div class="con4">\
                                <canvas id="cvs" width="200" height="120"></canvas>\
                                <span class="btn upload">上传个人头像<input type="file" class="upload_pic"\
                                                                      id="upload"/></span>\
                            </div>\
                        </div>\
                        <div class="Employee_information">\
                            <i-Select v-model="fromModal" size="small" placeholder="所属公司">\
                                <i-Option v-for="item in staffFromList" :value="item.value" :key="item">{{ item.label }}\
                                </i-Option>\
                            </i-Select>\
                        </div>\
                        <div class="leftStaffInfo-footer">\
                            <dd type="primary" @click="modifyaccountpassword = true" class="modifyaccountpassword">\
                                <i></i>修改账户密码\
                            </dd>\
                            <Modal\
                                    title="修改账户密码"\
                                    v-model="modifyaccountpassword"\
                                    width="340"\
                                    ok-text="保存修改"\
                                    cancel-text="忘记密码"\
                                    class-name="moveStaffWrap-n1">\
                                <div class="password_box">\
                                    <ul class="password-ul">\
                                        <li class="oldpassword">\
                                            <span>原密码</span>\
                                            <input type="text">\
                                        </li>\
                                        <li class="newpassword">\
                                            <span>新密码</span>\
                                            <input type="text">\
                                        </li>\
                                        <li class="confirmnewpassword">\
                                            <span>确认新密码</span>\
                                            <input type="text">\
                                        </li>\
                                    </ul>\
                                </div>\
                                <div class="wangjimima_box">\
                                    <dd type="primary" @click="wangjimima = true" class="wangjimima">\
                                        <div class="wjmmimg"></div>\
                                        忘记密码\
                                    </dd>\
                                    <Modal\
                                            title="忘记密码"\
                                            v-model="wangjimima"\
                                            width="340"\
                                            ok-text="保存"\
                                            cancel-text="取消"\
                                            class-name="moveStaffWrap-n2">\
                                        <div class="mobile-input">\
                                            <ul class="phonenumber-ul">\
                                                <li class="cell-phonenumber">\
                                                    <span>手机号</span>\
                                                    <input type="text">\
                                                    <p>获取验证码</p>\
                                                </li>\
                                                <li class="verification-code">\
                                                    <span>验证码</span>\
                                                    <input type="text">\
                                                </li>\
                                                <li class="verification-code">\
                                                    <span>输入新密码</span>\
                                                    <input type="text">\
                                                </li>\
                                            </ul>\
                                        </div>\
                                    </Modal>\
                                </div>\
                            </Modal>\
                        </div>\
                        <div class="Bind_Mobile">\
                            <dd type="primary" @click="bindmobile = true" class="bindmobile"><i></i>绑定手机</dd>\
                            <Modal\
                                    title="绑定手机"\
                                    v-model="bindmobile"\
                                    width="340"\
                                    ok-text="保存"\
                                    cancel-text="取消"\
                                    class-name="moveStaffWrap-n1">\
                                <div class="mobile-input">\
                                    <ul class="phonenumber-ul">\
                                        <li class="cell-phonenumber">\
                                            <span>手机号</span>\
                                            <input type="text">\
                                            <p>获取验证码</p>\
                                        </li>\
                                        <li class="verification-code">\
                                            <span>验证码</span>\
                                            <input type="text">\
                                        </li>\
                                    </ul>\
                                </div>\
                            </Modal>\
                        </div>\
                        <div class="Bind_WeChat">\
                            <dd type="primary" @click="bindwechat = true" class="bindwechat"><i></i>绑定微信</dd>\
                            <Modal\
                                    title="绑定微信"\
                                    v-model="bindwechat"\
                                    width="340"\
                                    ok-text="确定"\
                                    cancel-text="取消"\
                                    class-name="moveStaffWrap-n1">\
                                <div class="ewm_box">\
                                    <div class="ewm_img"></div>\
                                </div>\
                                <div class="footer-box">使用微信扫描二维码绑定微信</div>\
                                <div slot="footer"></div>\
                            </Modal>\
                        </div>\
                    </div>\
                    <div class="Employeeinformation Roster">\
                        <div class="rightInfo-tab01">\
                            <form id="form_member">\
                                <Tabs value="name1" :animated="false">\
                                    <Tab-pane label="员工资料" name="name1">\
                                        <div class="Sales_return_record">\
                                            <div class="Sales_return_insert">\
                                                <div class="Employee_form">\
                                                    <i class="mustStars"></i>\
                                                    <strong>姓名</strong>\
                                                </div>\
                                                    <input type="text" v-model="currentModalData.name" required="required">\
                                                <div class="Employee_form">\
                                                    <i class="mustStars"></i>\
                                                    <strong>档案号</strong>\
                                                </div>\
                                                <Input-number v-model="currentModalData.archivesNum"\
                                                              :disabled="disabled"></Input-number>\
                                                <div class="Employee_form">\
                                                    <i class="mustStars"></i>\
                                                    <strong>手机号码</strong>\
                                                </div>\
                                                <input type="text" v-model="currentModalData.tel">\
                                                <div class="Employee_form">\
                                                    <strong>账号状态</strong>\
                                                </div>\
                                                <i-Select v-model="Accountstatus" style="width:204px" placeholder=""\
                                                          v-model="currentModalData.userState">\
                                                    <i-Option v-for="item in Accountstatus2" :value="item.value"\
                                                              :key="item">{{ item.label }}\
                                                    </i-Option>\
                                                </i-Select>\
                                                <div class="Employee_form">\
                                                    <strong>密码</strong>\
                                                </div>\
                                                <input type="text" placeholder="不修改密码则为空"\
                                                       v-model="currentModalData.password">\
                                                <div class="Employee_form">\
                                                    <i class="mustStars"></i>\
                                                    <strong>类型</strong>\
                                                </div>\
                                                <i-Select v-model="type01" style="width:206px" placeholder=""\
                                                          v-model="currentModalData.memberType">\
                                                    <i-Option v-for="item in type02" :value="item.value" :key="item">{{\
                                                        item.label }}\
                                                    </i-Option>\
                                                </i-Select>\
                                                <div class="Employee_form">\
                                                    <i class="mustStars"></i>\
                                                    <strong>部门</strong>\
                                                </div>\
                                                <div style="float:left;">\
                                                    <i-Select v-model="department01" style="width:206px" placeholder=""\
                                                              v-model="currentModalData.department">\
                                                        <i-Option v-for="item in department02" :value="item.value"\
                                                                  :key="item">{{ item.label }}\
                                                        </i-Option>\
                                                    </i-Select>\
                                                </div>\
                                                <div class="Employee_form">\
                                                    <i class="mustStars"></i>\
                                                    <strong>管理岗</strong>\
                                                </div>\
                                                <div class="Administration">\
                                                    <Radio-group v-model="currentModalData.isManage" vertical>\
                                                        <Radio label="Administration_yes">\
                                                            <span>是</span>\
                                                        </Radio>\
                                                        <Radio label="Administration_no">\
                                                            <span>否</span>\
                                                        </Radio>\
                                                    </Radio-group>\
                                                </div>\
                                                <div class="Employee_form">\
                                                    <i class="mustStars"></i>\
                                                    <strong>职位</strong>\
                                                </div>\
                                                <div style="float:left;">\
                                                    <i-Select v-model="currentModalData.job" style="width:206px"\
                                                              placeholder="">\
                                                        <i-Option v-for="item in position02" :value="item.value"\
                                                                  :key="item">{{ item.label }}\
                                                        </i-Option>\
                                                    </i-Select>\
                                                </div>\
                                                <div class="Employee_form">\
                                                    <i class="mustStars"></i>\
                                                    <strong>角色</strong>\
                                                </div>\
                                                <i-Select v-model="currentModalData.role" style="width:206px"\
                                                          placeholder="">\
                                                    <i-Option v-for="item in role02" :value="item.value" :key="item">{{\
                                                        item.label }}\
                                                    </i-Option>\
                                                </i-Select>\
                                                <div class="Employee_form">\
                                                    <i class="mustStars"></i>\
                                                    <strong>职称等级</strong>\
                                                </div>\
                                                <div style="float:left;">\
                                                    <i-Select v-model="currentModalData.jobLevel" style="width:206px"\
                                                              placeholder="">\
                                                        <i-Option v-for="item in TitleLevel02" :value="item.value"\
                                                                  :key="item">{{ item.label }}\
                                                        </i-Option>\
                                                    </i-Select>\
                                                </div>\
                                                <div class="Employee_form">\
                                                    <i class="mustStars"></i>\
                                                    <strong>技术等级</strong>\
                                                </div>\
                                                <div style="float:left;">\
                                                    <i-Select v-model="currentModalData.skillLevel" style="width:206px"\
                                                              placeholder="">\
                                                        <i-Option v-for="item in Technicallevel02" :value="item.value"\
                                                                  :key="item">{{ item.label }}\
                                                        </i-Option>\
                                                    </i-Select>\
                                                </div>\
                                                <div class="Employee_form">\
                                                    <i class="mustStars"></i>\
                                                    <strong>薪资</strong>\
                                                </div>\
                                                <div class="inputNum">\
                                                    <Input-number :max="90000000" :min="-1000000"\
                                                                  v-model="currentModalData.salary"\
                                                                  :step="100"></Input-number>\
                                                </div>\
                                                <div class="Employee_form">\
                                                    <i class="mustStars"></i>\
                                                    <strong>绩效薪资</strong>\
                                                </div>\
                                                <div class="inputNum">\
                                                    <Input-number :max="90000000" :min="-1000000"\
                                                                  v-model="currentModalData.performanceSalary"\
                                                                  :step="100"></Input-number>\
                                                </div>\
                                                <div class="Employee_form">\
                                                    <i class="mustStars"></i>\
                                                    <strong>公积金（个人）</strong>\
                                                </div>\
                                                <div class="inputNum">\
                                                    <Input-number :max="90000000" :min="-1000000"\
                                                                  v-model="currentModalData.ownProvidentFund"\
                                                                  :step="100"></Input-number>\
                                                </div>\
                                                <div class="Employee_form">\
                                                    <i class="mustStars"></i>\
                                                    <strong>社保（公司）</strong>\
                                                </div>\
                                                <div class="inputNum">\
                                                    <Input-number :max="90000000" :min="-1000000"\
                                                                  v-model="currentModalData.companySocialInsurance"\
                                                                  :step="100"></Input-number>\
                                                </div>\
                                                <div class="Employee_form">\
                                                    <i class="mustStars"></i>\
                                                    <strong>公积金（公司）</strong>\
                                                </div>\
                                                <div class="inputNum">\
                                                    <Input-number :max="90000000" :min="-1000000"\
                                                                  v-model="currentModalData.companyProvidentFund"\
                                                                  :step="100"></Input-number>\
                                                </div>\
                                                <div class="Employee_form">\
                                                    <i class="mustStars"></i>\
                                                    <strong>社保（个人）</strong>\
                                                </div>\
                                                <div class="inputNum">\
                                                    <Input-number :max="90000000" :min="-1000000"\
                                                                  v-model="currentModalData.ownSocialInsurance"\
                                                                  :step="100"></Input-number>\
                                                </div>\
                                                <div class="Employee_form">\
                                                    <i class="mustStars"></i>\
                                                    <strong>父母津贴</strong>\
                                                </div>\
                                                <div class="inputNum">\
                                                    <Input-number :max="90000000" :min="-1000000"\
                                                                  v-model="currentModalData.parentalAllowance"\
                                                                  :step="100"></Input-number>\
                                                </div>\
                                                <div class="Employee_form">\
                                                    <strong>餐补</strong>\
                                                </div>\
                                                <div class="inputNum">\
                                                    <Input-number :max="90000000" :min="-1000000"\
                                                                  v-model="currentModalData.mealSupplement"\
                                                                  :step="100"></Input-number>\
                                                </div>\
                                                <div class="Employee_form">\
                                                    <i class="mustStars"></i>\
                                                    <strong>上班班次</strong>\
                                                </div>\
                                                <div class="workWidth">\
                                                    <i-Select v-model="currentModalData.workShift" placeholder="">\
                                                        <i-Option v-for="item in Dutyshift02" :value="item.value"\
                                                                  :key="item">{{ item.label }}\
                                                        </i-Option>\
                                                    </i-Select>\
                                                </div>\
                                            </div>\
                                        </div>\
                                    </Tab-pane>\
                                    <div class="huamingce">\
                                        <Tab-pane label="花名册" name="name2">\
                                            <div class="Sales_return_record">\
                                                <div class="Sales_return_insert2">\
                                                    <div class="Employee_form01">\
                                                        <strong>入职时间</strong>\
                                                    </div>\
                                                    <div class="Inductiontime" style="float:left;">\
                                                        <Row>\
                                                            <Col span="12">\
                                                            <Date-picker type="date" placeholder=""\
                                                                         style="width: 206px"></Date-picker>\
                                                            </Col>\
                                                        </Row>\
                                                    </div>\
                                                    <div class="Employee_form01">\
                                                        <strong>转正日期</strong>\
                                                    </div>\
                                                    <div class="Inductiontime" style="float:left;">\
                                                        <Row>\
                                                            <Col span="12">\
                                                            <Date-picker type="date" placeholder=""\
                                                                         style="width: 206px"></Date-picker>\
                                                            </Col>\
                                                        </Row>\
                                                    </div>\
                                                    <div class="Employee_form01">\
                                                        <strong>性别</strong>\
                                                    </div>\
                                                    <i-Select v-model="Gender01" style="width:206px; float:left;"\
                                                              placeholder="">\
                                                        <i-Option v-for="item in Gender02" :value="item.value"\
                                                                  :key="item">\
                                                            {{ item.label }}\
                                                        </i-Option>\
                                                    </i-Select>\
                                                    <div class="Employee_form01">\
                                                        <strong>生日日期</strong>\
                                                    </div>\
                                                    <div class="Inductiontime" style="float:left;">\
                                                        <Row>\
                                                            <Col span="12">\
                                                            <Date-picker type="date" placeholder=""\
                                                                         style="width: 206px"></Date-picker>\
                                                            </Col>\
                                                        </Row>\
                                                    </div>\
                                                    <div class="Employee_form01">\
                                                        <strong>籍贯</strong>\
                                                    </div>\
                                                    <input type="text">\
                                                    <div class="Employee_form01">\
                                                        <strong>户籍地址</strong>\
                                                    </div>\
                                                    <input type="text">\
                                                    <div class="Employee_form01">\
                                                        <strong>身份证</strong>\
                                                    </div>\
                                                    <input type="text">\
                                                    <div class="Employee_form01">\
                                                        <strong>过期日期</strong>\
                                                    </div>\
                                                    <div class="Inductiontime" style="float:left;">\
                                                        <Row>\
                                                            <Col span="12">\
                                                            <Date-picker type="date" placeholder=""\
                                                                         style="width: 206px"></Date-picker>\
                                                            </Col>\
                                                        </Row>\
                                                    </div>\
                                                    <div class="Employee_form01">\
                                                        <strong>文化程度</strong>\
                                                    </div>\
                                                    <input type="text">\
                                                    <div class="Employee_form01">\
                                                        <strong>专业</strong>\
                                                    </div>\
                                                    <input type="text">\
                                                    <div class="Employee_form01">\
                                                        <strong>银行开户行</strong>\
                                                    </div>\
                                                    <input type="text">\
                                                    <div class="Employee_form01">\
                                                        <strong>银行卡</strong>\
                                                    </div>\
                                                    <input type="text">\
                                                    <div class="Employee_form01">\
                                                        <strong>备注</strong>\
                                                    </div>\
                                                    <input type="text" class="inputLong">\
                                                    <div class="Employee_form02">\
                                                        <strong>合同开始时间</strong>\
                                                    </div>\
                                                    <div class="Employee_form02">\
                                                        <strong>合同结束时间</strong>\
                                                    </div>\
                                                    <div class="Employee_form03" style="border-right: none">\
                                                        <strong>续签</strong>\
                                                    </div>\
                                                    <div class="Employee_form03"\
                                                         style="border-right: 1px solid #EAEEEF;">\
                                                        <strong>操作</strong>\
                                                    </div>\
                                                    <div class="Inductiontime01" style="float:left;">\
                                                        <Row>\
                                                            <Col span="12">\
                                                            <Date-picker type="date" placeholder=""\
                                                                         style="width: 193px"></Date-picker>\
                                                            </Col>\
                                                        </Row>\
                                                    </div>\
                                                    <div class="Inductiontime01" style="float:left;">\
                                                        <Row>\
                                                            <Col span="12">\
                                                            <Date-picker type="date" placeholder=""\
                                                                         style="width: 193px"></Date-picker>\
                                                            </Col>\
                                                        </Row>\
                                                    </div>\
                                                    <div class="Employee_form04">\
                                                        <Checkbox label=""></Checkbox>\
                                                    </div>\
                                                    <div class="Employee_form04">\
                                                        <div class="Employee_form04_img01">\
                                                        </div>\
                                                        <div class="Employee_form04_img02">\
                                                        </div>\
                                                    </div>\
                                                </div>\
                                            </div>\
                                        </Tab-pane>\
                                    </div>\
                                </Tabs>\
                            </form>\
                        </div>\
                    </div>\
                </div>\
            </Modal>',
  model: {
    prop: 'show',
    event: 'change-show'
  },
  props: {
    show: {
      type: Boolean,
      default: false
    }
  },
  data: function () {
    return {
      showEditStaffModal: false,
      currentModalData: {
        id: '',
        name: '',
        password: '',
        department: '',
        tel: 0,
        job: '',
        jobLevel: '',
        role: '',
        roleId: '',
        memberType: '',
        attribution: '',
        salary: '',
        ownProvidentFund: '',
        companyProvidentFund: '',
        parentalAllowance: '',
        workShift: '',
        archivesNum: '',
        userState: '',
        isManage: '',
        skillLevel: '',
        performanceSalary: '',
        ownSocialInsurance: 0,
        companySocialInsurance: 0,
        mealSupplement: ''
      },
      tempArr: [],
      //添加新员工
      addNewStaffModal: false,
      //修改账户密码
      modifyaccountpassword: false,
      wangjimima: false,
      //绑定手机
      bindmobile: false,
      wangjimima: false,
      //绑定微信
      bindwechat: false,
      //添加新员工内容

      /*员工资料*/
      staffFromList: [
        {
          value: '员工资料',
          label: '员工资料'
        },
        {
          value: '所属公司',
          label: '所属公司'
        },

      ],
      fromModal: '',

      /*档案号*/
      disabled: true,
      value6: '001',

      /*账号状态*/
      Accountstatus2: [
        {
          value: 'qiyong',
          label: '启用'
        },
        {
          value: 'buqiyong',
          label: '不启用'
        }
      ],
      Accountstatus: '',

      /*类型*/
      type02: [
        {
          value: 'shiyonqi',
          label: '试用期员工'
        },
        {
          value: 'zhuanzhengyuangon',
          label: '转正员工'
        },

      ],
      type01: '',

      /*部门*/
      department02: [
        {
          value: 'jishubu',
          label: '技术部'
        },
        {
          value: 'zhuanzhengyuangon',
          label: '转正员工'
        },

      ],
      department01: '',

      /*管理岗*/
      vertical: '',

      /*职位*/
      position02: [
        {
          value: 'zongjban',
          label: '总经办'
        },
        {
          value: 'zhuanzhengyuangon',
          label: '转正员工'
        },

      ],
      position01: '',

      /*角色*/
      role02: [
        {
          value: 'zongjban',
          label: '总经办'
        },
        {
          value: 'zhuanzhengyuangon',
          label: '转正员工'
        },

      ],
      role01: '',

      /*职称等级*/
      TitleLevel02: [
        {
          value: 'gaoji',
          label: '高级'
        },
        {
          value: 'zhongji',
          label: '中级'
        },

      ],
      TitleLevel01: '',

      /*技术等级*/
      Technicallevel02: [
        {
          value: 'gaoji',
          label: '高级'
        },
        {
          value: 'zhongji',
          label: '中级'
        },

      ],
      Technicallevel01: '',

      /*薪资*/
      value1: 0,

      /*绩效薪资*/
      value2: 0,

      /*公积金（个人）*/
      value3: 0,

      /*社保（公司）*/
      value4: 0,

      /*公积金（公司）*/
      value5: 0,

      /*社保（个人）*/
      value6: 0,

      /*父母津贴*/
      value7: 0,

      /*餐补*/
      value8: 0,

      /*上班班次*/
      Dutyshift02: [
        {
          value: 'xiaoshoubu',
          label: '销售部'
        },
        {
          value: 'zhongji',
          label: '400'
        },

      ],
      Dutyshift01: '',

      /*性别*/
      Gender02: [
        {
          value: 'nan',
          label: '男'
        },
        {
          value: 'nv',
          label: '女'
        },

      ],
      Gender01: '',


      //批量修改信息
      alterInfoModal: false,
      /*批量修改信息内容*/
      shebao01: [
        {
          value: 'shebaoger',
          label: '社保（个人）'
        },
        {
          value: 'shebaogongs',
          label: '社保（公司）'
        },
      ],
      shebao: '',
      money01: [
        {
          value: 'beijing',
          label: '北京市'
        },
        {
          value: 'shanghai',
          label: '上海市'
        }
      ],
      money: '',
      shebao_01: [
        {
          type: 'selection',
          width: 62,

          align: 'center'
        },
        {
          title: '姓名',
          key: 'name',
          width: 136,

        },
        {
          title: '社保（个人）',
          key: 'shebaoger',
          width: 120,
        },
        {
          title: '社保（公司）',
          key: 'shebaogons',
          width: 110,
        }
      ],
      data1: [],
      userTempArr: [],
      //移动人员
      moveStaffModal: false,

      //移动人员弹框内容========
      //待转移人员
      staffChecked: false,
      /*转移至*/
      transferToList: [
        {
          value: '销售部1',
          label: '销售部1'
        },
        {
          value: '销售部2',
          label: '销售部2'
        },
        {
          value: '销售部3',
          label: '销售部3'
        },

      ],
      transferTo: '',
      //连同组员移动
      moveRadio: '',

      /*默认排序*/
      sort: [
        {
          value: 'morenpaixuy',
          label: '默认排序1',
        },
        {
          value: 'morenpaixue',
          label: '默认排序2'
        },
        {
          value: 'morenpaixus',
          label: '默认排序3'
        }
      ],
      defaultSort: '',
    }
  },
  computed: {
    model: {
      get: function () {
        return this.show;
      },
      set: function (val) {
        this.$emit('change-show', val);
      }
    }
  },
  methods: {
    initUserData: function () {
      return [
        {
          id: "1",
          name: '王小明',
          shebaoger: 0,
          shebaogons: 0
        },
        {
          id: "2",
          name: '王小明',
          shebaoger: 0,
          shebaogons: 0
        },
        {
          id: "3",
          name: '王小明',
          shebaoger: 0,
          shebaogons: 0
        },
        {
          id: "4",
          name: '王小明',
          shebaoger: 0,
          shebaogons: 0
        },
        {
          id: "5",
          name: '王小明',
          shebaoger: 0,
          shebaogons: 0
        },
        {
          id: "6",
          name: '王小明',
          shebaoger: 0,
          shebaogons: 0
        },
        {
          id: "7",
          name: '王小明',
          shebaoger: 0,
          shebaogons: 0
        },
        {
          id: "8",
          name: '王小明',
          shebaoger: 0,
          shebaogons: 0
        },
      ]
    },
    handleSave: function () {
      // 发送修改过的数据到后台
      console.log(this.userTempArr)
      $.getJSON('data/plot/mock_user_data.json')
          .done(function (res) {
            if (res.ecode === '1') {
              that.$Message.success("保存成功");
              that.$Modal.remove();
            } else {
              that.$Message.error("保存失败");
            }
          });

    },
    handleCancel: function () {
      this.userTempArr = this.data1.slice(0)
    },
    handleSelectRow: function (selection, row) {
      this.tempArr = selection.slice();
    },
    handleSetSafe: function () {
      var that = this;
      if (!this.disabled) {
        if (this.shebao === "shebaoger") {
          if (!(that.tempArr.length === 0)) {
            this.userTempArr.forEach(function (item, index) {
              that.tempArr.forEach(function (t) {
                if (item.id === t.id) {
                  item.shebaoger = that.value6
                }
              })
            })
            that.value6 = 0
          } else {
            this.$Message.error('未选择需要修改人员')
          }
          that.tempArr = []
        } else if (this.shebao === "shebaogongs") {
          if (!(that.tempArr.length === 0)) {
            this.userTempArr.forEach(function (item, index) {
              that.tempArr.forEach(function (t) {
                if (item.id === t.id) {
                  item.shebaogons = that.value6
                }
              })
            })
            that.value6 = 0
          } else {
            this.$Message.error('未选择需要修改人员')
          }
          that.tempArr = []
        } else {
          this.$Message.error('未选择需要修改保险类型')
        }
        this.disabled = !this.disabled;
      } else {
        this.disabled = !this.disabled;
      }
    },
    search: function () {
      $.get(function (data) {
        bus.$emit(data);//通过 bus 发布事件.
      });
    }
  },
  created: function () {
    this.data1 = this.initUserData();
    this.userTempArr = this.initUserData();
  },
};
